﻿using System.Web.Mvc;

namespace WooCoo.Portal.Web.Areas.Support
{
    public class SupportAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Support";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                name: this.AreaName+ "_default",
                url: this.AreaName + "/{controller}/{action}/{id}",
                defaults: new {area = this.AreaName, controller = "Home",action = "Index", id = UrlParameter.Optional },
                namespaces: new string[] { "WooCoo.Portal.Web.Areas.Support.Controllers" }
            );
        }
    }
}